package com.wzdigit.wms.basic.mapper.core.basic;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wzdigit.framework.orm.mybatis.MyBatisRepository;
import com.wzdigit.wms.basic.domain.basic.ZoneAttr;
import com.wzdigit.wms.basic.client.response.basic.ZoneAttrResponse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 库区属性 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2020-12-28
 */
@MyBatisRepository
public interface ZoneAttrMapper extends BaseMapper<ZoneAttr> {
	
	List<ZoneAttrResponse> selectAllByZoneId(@Param("zoneId") Integer zoneId);
	
	ZoneAttr selectOneByAttrAndZoneId(@Param("attr") String attr, @Param("zoneId") Integer zoneId);
	
	int deleteByZoneIdAndNotId(@Param("zoneId") Integer zoneId, @Param("notDelIds") List<Integer> notDelIds);
	
	int deleteByZoneId(@Param("zoneId") Integer zoneId);
	
    int deleteByPrimaryKey(Integer zoneAttrId);

    int insert(ZoneAttr record);

    ZoneAttr selectByPrimaryKey(Integer zoneAttrId);

    int updateByPrimaryKeySelective(ZoneAttr record);

    int updateByPrimaryKey(ZoneAttr record);
}